using System.ComponentModel;

namespace GraphMyCode.Client.ViewModels
{
	public class ViewModelBase : INotifyPropertyChanged
	{
		protected virtual void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
		}

		#region INotifyPropertyChanged Members

		public event PropertyChangedEventHandler PropertyChanged;

		#endregion
	}
}